package com.nidu.demo.user.dto;

import com.nidu.demo.menu.dto.MenuTreeCO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.List;

@Data
@Schema(description = "用户权限客户端对象")
public class UserPermissionInfoCO {

    @Schema(description = "用户信息", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long userId;

    @Schema(description = "角色标识数组", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<String> roles;

    @Schema(description = "菜单树", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<MenuTreeCO> menus;

    @Schema(description = "按钮权限数组", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<String> buttons;

}
